package clickhouse.service.common;

import clickhouse.util.StrUtil;

import java.util.List;
import java.util.Map;

public class CommonUtil {
    public static   void checkValidateX(String tableName, List<?> fieldValues){
        if(StrUtil.isNull(tableName)){
            throw new RuntimeException("表名不能为空");
        }
        if(fieldValues==null||fieldValues.size()==0||fieldValues.get(0)==null){
            throw new RuntimeException("待操作数据不正确");
        }
    }
}
